<script setup>
import { RouterView, useRoute } from 'vue-router'
import { computed } from 'vue'
import AdminLayout from './components/AdminLayout.vue'

const route = useRoute()
const isLoginPage = computed(() => route.path === '/login')
</script>

<template>
  <div v-if="isLoginPage">
    <RouterView />
  </div>
  <AdminLayout v-else>
    <RouterView />
  </AdminLayout>
</template>

<style>
#app {
  height: 100vh;
  width: 100vw;
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}
</style>
